{ext->class_function class="realstate" func="get_super_select" name=$good.name parent=$smarty.get.product_id assign="super_data"}
<script language="javascript1.4" type="text/javascript">	
	SuperSelect.sPromptNewLabel='{t t='Įveskite elemento pavadinimą'}:';	
	SuperSelect.sPromptEditLabel='{t t='Įveskite naują elemento pavadinimą'}:';
	SuperSelect.sConfirmRemove='{t t='Ar tikrai norie ištrinti pasirinktą elementą'}?';
	SuperSelect.sNoId='noid';
</script>
<table cellspacing="0" width="100%" style="border-top:1px solid #DBE1E5; background-color:#F8F9F9">
	<tr>
		<td width="11"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td width="25%" height="25" class="defaultFormLabel"><nobr>{t t=$good.name|strip}</td>
		<td>				
		<select name="{$good.name}" id="{$good.name}_id" style="width:{if $data.admins.cur.mod[1]}250{else}350{/if}px " onChange="SuperSelect.fSetSelectedDomNodes('child_list','{$good.name}_id','{$good.name}')">
			<option value=""></option>	
			{foreach from=$super_data item="super_select_el" key="super_select_key"}
				{if $super_select_key!='selected'}
				<option value="{$super_select_el.value}" {if $super_data.selected.value==$super_select_el.value} selected{/if}>{$super_select_el.text}</option>	
				{/if}
			{/foreach}			
		</select>
		<input type="hidden" name="{$good.name}[selected][text]" value="">
		<input type="hidden" name="{$good.name}[selected][value]" value="">
		</td>	
		<td width="1" height="25"><nobr><div id="{$good.name}_div" style="margin:0px; padding:0px;"></div></td>
		{if $data.admins.cur.mod[1]}
		<td align="right">
		<a href="#" onClick="SuperSelect.fAdd('{$good.name}_id','child_list','{$good.name}'); return false;">[ {t t='Pridėti reikšmę'} ]</a> 		
		<a href="#" onClick="SuperSelect.fEdit('{$good.name}_id','child_list','{$good.name}'); return false;">[ {t t='Redaguoti reikšmę'} ]</a>&nbsp;&nbsp;&nbsp;
		 <a href="#" onClick="SuperSelect.fRemove('{$good.name}_id','child_list','{$good.name}'); return false;" style="color:#CC0E00 ">[ {t t='Naikinti reikšmę'} ]</a>   		
		</td>	
		{/if}
		<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<script language="javascript1.4" type="text/javascript">
	SuperSelect.fCreateDomNodes('{$good.name}_id', 'child_list', '{$good.name}')
</script>